# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^train/', include('train.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)


urlpatterns += patterns('',
    # Example:
    # (r'^note/', include('note.foo.urls')),
    (r'^$','train.trainapp.views.index'),
    (r'^search/$','train.trainapp.views.search'),
    (r'^test/$','train.trainapp.views.index2'),
    (r'^search2/$','train.trainapp.views.search2'),
#    (r'^p/(?P<_page_index>\d+)/$','tmitter.mvc.views.index_page'),
#    (r'^user/$','tmitter.mvc.views.index_user_self'),
#    (r'^user/(?P<_username>[a-zA-Z\-_\d]+)/$','tmitter.mvc.views.index_user'),
#    (r'^user/(?P<_username>[a-zA-Z\-_\d]+)/(?P<_page_index>\d+)/$','tmitter.mvc.views.index_user_page'),
#    (r'^users/$','tmitter.mvc.views.users_index'),
#    (r'^users/(?P<_page_index>\d+)/$','tmitter.mvc.views.users_list'),
#    (r'^signin/$','tmitter.mvc.views.signin'),
#    (r'^signout/$','tmitter.mvc.views.signout'),
#    (r'^signup/$','tmitter.mvc.views.signup'),
#    (r'^settings/$','tmitter.mvc.views.settings'),
#    (r'^message/(?P<_id>\d+)/$','tmitter.mvc.views.detail'),
#    (r'^message/(?P<_id>\d+)/delete/$','tmitter.mvc.views.detail_delete'),
#    (r'^friend/add/(?P<_username>[a-zA-Z\-_\d]+)','tmitter.mvc.views.friend_add'),
#    (r'^friend/remove/(?P<_username>[a-zA-Z\-_\d]+)','tmitter.mvc.views.friend_remove'),
#    (r'^api/note/add/','tmitter.mvc.views.api_note_add'),
#    # Uncomment this for admin:
#    (r'^admin/(.*)',admin.site.root),
#    (r'^feed/rss/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': rss_feeds}),
#    (r'^user/feed/rss/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': rss_user_feeds}),
#    (r'^styles/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './statics/styles'}),
#    (r'^scripts/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './statics/scripts'}),
#    (r'^images/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './statics/images'}),
#    (r'^uploads/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './statics/uploads'}),

    url(r'^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media'),   
    url(r'^__debug__/sql_select/$', 'debug_toolbar.views.sql_select', name='sql_select'),   
    url(r'^__debug__/sql_explain/$', 'debug_toolbar.views.sql_explain', name='sql_explain'),   
    url(r'^__debug__/sql_profile/$', 'debug_toolbar.views.sql_profile', name='sql_profile'),   
    url(r'^__debug__/template_source/$', 'debug_toolbar.views.template_source', name='template_source'),  
    
    

)
